/*
 * @Author: your name
 * @Date: 2022-04-15 15:01:22
 * @LastEditTime: 2022-04-16 16:16:07
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \mallAdmin\src\app\main\finance\finance-second-order\finance-second-order.service.ts
 */
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';

@Injectable({
  providedIn: 'root'
})
export class FinanceSecondOrderService {

  serviceUrls = {
    secondOrderListUrl: '/mallOrder/findMallOrder', // 查询财务二手订单list
    exportSecondOrderUrl: '/mallOrder/findMallOrderExcel' // Export财务二手订单
  }

  constructor(public httpClient: HttpClient) { }

  // 查询财务二手订单list
  querySecondOrderList(params: any) {
    return this.httpClient.post(this.serviceUrls.secondOrderListUrl, params).toPromise();
  }

  // Export财务二手订单
  exportSecondOrderData(params: any) {
    return this.httpClient.get(this.serviceUrls.exportSecondOrderUrl, { params, responseType: 'blob' }).toPromise();
  }
}



